import axios from "axios";
import config from "@/util/config.js";

//创建一个axios的对象
const rulesAPI = {
    mdBaseUrl: config.sysUrl+"/sys",
    mdProMat: "/rules",
    timeout: 5000,
      getEncoding(param, callback) {
        axios.get(this.mdBaseUrl + this.mdProMat + "/query", {params: param}).then((res) => {
            callback(res.data);
        })
    }
}
export default rulesAPI;